<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<link rel="stylesheet" type="text/css" href="css/reset.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	</head>

	<body>
		<header class="clearfix">
			<div class="logo fl">
				<a href="index.html">
					<img src="img/logo_03.jpg" />
				</a>
			</div>
			<div class="searchBar fl">
				<input type="search" name="" id="" value="" placeholder="请输入商品名"/>
				<input type="image" name="" id="" value="" src="img/magnifier.png" />
			</div>
			<div class="selectBar fr">
				<select name="">
					<option value="">广州</option>
					<option value="">深圳</option>
					<option value="">珠海</option>
				</select>
			</div>
		</header>
		<section class="clearfix">
			<div class="top_img"><img src="img/seafood_06.jpg" /></div>
			<div class="tuangou clearfix">
				<div class="fl clearfix">
					<div class="fl"><img src="img/tuangou.jpg" /></div>
					<p>优惠团购</p>
				</div>

				<div class="fr clearfix">
					<a href="" class="fr">
						<p class="">更多</p>
						<div class="more"><img src="img/more.jpg" /></div>
					</a>
				</div>
			</div>
			<div class="welfare ">
				<div class="clearfix">
					<div class="fl"><img src="img/welfare_03.jpg" /></div>
					<div class="fr"><img src="img/welfare_05.jpg" class="" /></div>
				</div>
				<div class="clearfix">
					<div class="fl"><img src="img/welfare_10.jpg" /></div>
					<div class="fr"><img src="img/welfare_12.jpg" class="" /></div>
				</div>
			</div>
			<div class="heart clearfix">
				<div class="fl clearfix">
					<div class="fl"><img src="img/heart.png" /></div>
					<p>猜你喜欢</p>
				</div>
				<div class="clearfix">
					<a href="" class="fr">
						<p class="">更多</p>
						<div class="more"><img src="img/more.jpg" /></div>
					</a>

				</div>
			</div>
			<div class="food">
				<div class="sushi clearfix">
					<div class="fl"><img src="img/food_17.jpg" /></div>
					<div class="describe1 fl">
						<div>万岁寿司（正佳店）</div>
						<div>[100店通用] 双人套餐</div>
						<div>&yen;88.00</div>
					</div>
					<div class="describe2 fr">
						<div>&lt;100m</div>
						<div>已售1000</div>
					</div>
				</div>
				<div class="duck clearfix">
					<div class="fl"><img src="img/food_20.jpg" /></div>
					<div class="describe1 fl">
						<div>周黑鸭（正佳店）</div>
						<div>[100店通用] 双人套餐</div>
						<div>&yen;88.00</div>
					</div>
					<div class="describe2 fr">
						<div>&lt;100m</div>
						<div>已售1000</div>
					</div>
				</div>
				<div></div>
			</div>
			<div></div>
		</section>
		<footer class="clearfix">
	<a href="index.html">
		<div class="home fl">
			<div><img src="img/home.png" /></div>
			<p>首页</p>
		</div>
	</a>
	<a href="classify.html">
		<div class="classify fl">
			<div><img src="img/classify.jpg" /></div>
			<p>分类</p>
		</div>
	</a>
	<a href="find.html">
		<div class="find fl">
			<div><img src="img/find_23.jpg" />
			</div>
			<p>发现</p>
		</div>
	</a>
	<a href="my.html">
		<div class="my fr">
			<div><img src="img/my_29.jpg" /></div>
			<p>我的</p>
		</div>
	</a>

</footer>
		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				//获取客户端宽度
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				// 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
			}

			function initRecalc() {
				recalc();
				// if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
	</body>

</html>